package cn.rkylin.oms.base.brand.service;

import com.github.pagehelper.PageInfo;

import cn.rkylin.oms.base.brand.domain.Brand;
import cn.rkylin.oms.base.brand.vo.BrandVO;

import java.util.Map;

/**
 * 类名：IBrandService<br>
 * 作用：品牌信息服务层接口<br>
 * 创建时间：2018年1月24日 下午2:40:43
 *
 * @author LiPeng
 */
public interface IBrandService {

    /**
     * queryBrandList:查询品牌信息列表
     *
     * @param page
     * @param length
     * @param queryParamVO
     * @return 
     * @throws Exception
     */
    PageInfo<BrandVO> queryBrandList(int page, int length, BrandVO queryParamVO) throws Exception;

    /**
     * 品牌下载
     *
     * @return
     * @throws Exception
     */
    Map<String, Object> downLoadBrand() throws Exception;

    /**
     * 品牌反馈通知
     *
     * @return
     * @throws Exception
     */
    Map<String, Object> receiveBrand(String json, String type) throws Exception;
    
    /**
     * 获取ID
     * 
     * @param id
     * @return
     * @throws Exception
     */
    public BrandVO getBrandById(String id) throws Exception;
    
    /**
     * 获取code
     * 
     * @param id
     * @return
     * @throws Exception
     */
    public BrandVO getBrandByBrandCode(BrandVO brandVO) throws Exception;
    
    
    /**
     * 创建
     * @param brandVO
     * @return
     * @throws Exception
     */
    public Brand insert(BrandVO brandVO) throws Exception;

    /**
     * 修改
     * 
     * @param brandVO
     * @return
     * @throws Exception
     */
    public Brand update(BrandVO brandVO) throws Exception;

    /**
     * 删除
     * 
     * @param brandID
     * @return
     * @throws Exception
     */
    public int delete(String brandID) throws Exception;
	
	}


